package org.feiye.studyday08;

import java.util.Arrays;

public class Arrays_01 {

	public static void main(String[] args) {
		//
		char[] words = new char[] { 'a', '男', 'g', '滚', 't', 'A', 'y', 'S', '死', 'z', '渣', '女' };
		Arrays.sort(words);
		for (char word : words) {
			System.out.print(word + " ");
		}
		System.out.println();
		int index = Arrays.binarySearch(words, '滚');
		System.out.println(index);
	}

}
